package com.xxx.system.controller;

import com.xxx.base.utils.R;
import com.xxx.system.domain.Permission;
import com.xxx.system.service.IPermissionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author BoWei Wang
 * @date 2025/8/5
 */

@RestController
@RequestMapping("/perm")
@Api(tags = "权限接口类")
public class PermissionController {
    @Autowired
    private IPermissionService permissionService;


    @GetMapping
    @ApiOperation("查询所有权限")
    public R<List<Permission>> findAll() {
        return R.ok(permissionService.findAll());
    }



}
